#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int max = 0,min=0;
	while ((scanf("%d", &min) != EOF))
	{
		if (max < min)
		{
			max = min;
		}
	}
	printf("%d", max);
	return 0;
}